class Solution:
    def findMedianSortedArrays(self, list1, list2):
        list1 = list1 + list2
        list1 = sorted(list1)

        length = len(list1)
        print(list1)
        if length % 2 == 0:
            print("avg")
            return float((list1[int(length / 2) - 1] + list1[int(length / 2)]) / 2)
        else:
            print("single")
            return float(list1[int((length - 1) / 2)])

        pass

if __name__ == '__main__':
    sl = Solution()
    result = sl.findMedianSortedArrays([1,2], [3,4])
    print(result)